/**
  超级管理员才有缴费设置和通知书定制, user 账号没有权限进来这些是403
 */

export default [
  {
    path: '/user',
    layout: false,
    routes: [
      { name: '登录', path: '/user/login', component: './user/Login' },
      { name: '首次登录', path: '/user/firstlogin', component: './user/Login/firstLogin' },
      { name: '注册', path: '/user/register', component: './user/Register' },
      { component: './404' },
    ],
  },
  { path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome' },
  // !!! 暂时注释不能删除，还有可能需要在这里面学习点什么东西的！！！
  // {
  //   path: '/admin',
  //   name: '管理页',
  //   icon: 'crown',
  //   access: 'canAdmin',
  //   routes: [
  //     { path: '/admin/sub-page', name: '二级管理页', icon: 'smile', component: './Welcome' },
  //     { component: './404' },
  //   ],
  // },
  // { name: '查询表格', icon: 'table', path: '/list', component: './TableList' },
  {
    name: '录入发布',
    icon: 'appstore',
    path: '/release',
    routes: [
      {
        path: '/release/edit',
        name: '电子通知书',
        icon: 'smile',
        component: './InformationRelease/component/noticeBook/edit',
        hideInMenu: true,
      },
      { component: './InformationRelease' },
    ],
  },
  { name: '审核', icon: 'user', path: '/verify', component: './Verify/verify' },
  {
    name: '用户中心',
    icon: 'reconciliation',
    path: '/userCenter',
    component: './UserCenter/user',
    access: 'canAdmin',
  },
  // {
  //   name: '学籍转换',
  //   icon: 'bank',
  //   path: '/StudentConversion',
  //   component: './StudentConversion/studentConversion',
  // },
  // {
  //   name: '缴费设置',
  //   icon: 'credit-card',
  //   path: '/PaymentSettings',
  //   component: './PaymentSettings/paymentSettings',
  //   access: 'canAdmin',
  // },
  {
    name: '通知书定制',
    icon: 'pic-center',
    path: '/NotificationSettings',
    routes: [
      {
        path: '/notificationSettings/edit',
        name: '发布',
        icon: 'smile',
        component: './NotificationSettings/edit',
        hideInMenu: true,
      },
      {
        path: '/notificationSettings/template',
        name: '发布',
        icon: 'smile',
        component: './NotificationSettings/template',
        hideInMenu: true,
      },
      { component: './NotificationSettings/notificationSettings' },
    ],
    // access: 'canAdmin',
    // 暂时先注释了 因为我想在自己的账号中调试通知书
  },
  {
    name: '个人中心',
    icon: 'setting',
    path: '/personalCenter',
    component: './PersonalCenter/personalCenter',
  },
  { path: '/', redirect: '/welcome' },
  { component: './404' },
];
